package com.book.service;

import com.book.dto.PostPage;
import com.book.entity.Post;
import com.book.utils.ResponseResult;

public interface PostService {
    ResponseResult getList(PostPage postPage);

    ResponseResult publishPost(String userId,Post post);

    ResponseResult getOne(int id);

    ResponseResult getPost(int id);

    ResponseResult getPosts(PostPage postPage);

    ResponseResult deletePost(int id);

    ResponseResult getAllPosts(PostPage postPage);
}
